﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Visa.DB;

namespace VisaApp.Models
{
    public class EmailResModel
    {
        public int id { get; set; }
        public string Email { get; set; }
        public Nullable<System.DateTime> DateCreate { get; set; }
        public Nullable<bool> Status { get; set; }

        public static void MapFrom(EmailResModel model, ref EmailResgedit entity)
        {
            entity.id = model.id;
            entity.Email = model.Email;
            entity.DateCreate = model.DateCreate;
            entity.Status = model.Status;
        }

        public static void MapFrom(EmailResgedit entity, ref EmailResModel model)
        {
            model.id = entity.id;
            model.Email = entity.Email;
            model.DateCreate = entity.DateCreate;
            model.Status = entity.Status;
        }

    }
};
